// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

/*
/ 全局静态变量定义
切勿随意修改数组次序，很多地方已下标方式使用
 */

export const page = {
  limit: [20, 40, 60, 80, 100],
  page: 1,
  layout: 'total, sizes, prev, pager, next, jumper',
};

/**
 * 无限极分类type
 * @type {{product: number, attachment: number, menu: number, article: number, operator: number}}
 */
export const categoryType = [
  // 1 产品分类，2 附件分类，3 文章分类， 4 设置分类， 5 菜单分类， 6 配置分类， 7 秒杀配置
  { name: 'Product Category', value: 1, shortName: 'Product' },
  { name: 'Attachment Category', value: 2, shortName: 'Attachment' },
  { name: 'Article Category', value: 3, shortName: 'Article' },
  { name: 'Set Classification', value: 4, shortName: 'Settings' },
  { name: 'Menu Category', value: 5, shortName: 'Menu' },
  { name: 'Configuration Classification', value: 6, shortName: 'Configuration' },
  { name: 'Flash Sale Configuration', value: 7, shortName: 'Flash Sale' },
];

export const roleListStatus = [
  { label: 'all', value: '' },
  { label: 'display', value: 1 },
  { label: 'not display', value: 0 },
];

export const showHiddenStatus = [
  { label: 'display', value: '‘1’' },
  { label: 'not display', value: '‘0’' },
];

export const switchStatus = [
  { label: 'open', value: 1 },
  { label: 'close', value: 0 },
];

export const deletedOrNormal = [
  { label: 'normal', value: 0 },
  { label: 'Deleted', value: 1 },
];

/**
 * 暂时弃用
 * @type {*[]}
 */
export const configCategory = [
  { label: 'system', value: '0' },
  { label: 'application', value: '1' },
  { label: 'payment', value: '2' },
  { label: 'other', value: '3' },
];

/**
 * 表单配置集合集中配置
 * @type {{id: number, dis: string}[]}
 */
export const formConfigIds = [
  { id: 84, dis: 'WeChat official account form configuration' },
  { id: 86, dis: 'Flash sale configuration' },
];

/**
 * 时间选择器
 */
export const fromList = {
  title: 'Timing',
  custom: true,
  fromTxt: [
    { text: 'all', val: '' },
    { text: 'today', val: 'today' },
    { text: 'yesterday', val: 'yesterday' },
    { text: 'lately7', val: 'lately7' },
    { text: 'lately30', val: 'lately30' },
    { text: 'month', val: 'month' },
    { text: 'year', val: 'year' },
  ],
};

// 统计管理时间选择器
export const timeList = {
  title: 'Timing',
  custom: true,
  fromTxt: [
    { text: 'yesterday', val: `` },
    { text: 'lately7', val: 'lately7' },
    { text: 'lately30', val: 'lately30' },
  ],
};
